<?php
require('lib/verify.php');
require('lib/has_char.php');
require('lib/is_approved.php');

$system_id = $system["system_id"];

$instance_id = $_GET["id"];
$sql = "select * from wm_instances where instance_id='$instance_id'";
$result = $db->query($sql);
$instance = $db->fetch_assoc($result);

$_category = "wardkp";
$_title = $instance["instance_name"];
require('lib/head.php');


boxTop("wardkp: $_title");
?>
Browse loot to mark items as max or mod. <br /><br />
<i>Select a boss.</i><br />
<?php
$sql = "select * from wm_bosses where boss_instance = '$instance_id' order by boss_id asc";
$result = $db->query($sql);
while($boss = $db->fetch_assoc($result)) {

$sql = "select * from wm_boss_values where boss_value_boss = '" . $boss["boss_id"] . "' and boss_value_system_id = $system_id";
$ress = $db->query($sql);
$bval = $db->fetch_assoc($ress);
?>
 <a href="loot-boss.php?id=<?=$boss["boss_id"]?>"><?=$boss["boss_name"]?></a> <?=number_format($bval["boss_value_value"], 2)?> dkp<br />
<?php
}
?>
<br />
<i>If you wish, you can browse all the loot at once, though this loads more slowly:</i><br />
<a href="loot-instance-all.php?id=<?=$instance["instance_id"]?>">All <?=$instance["instance_name"]?> Loot</a>
<?php
boxBot();
?>

<?php
require('lib/foot.php');
?>

